package com.firebird.app.fekpsl.bean

import com.squareup.moshi.Json
import org.litepal.crud.LitePalSupport
import java.io.Serializable

/**
 * Created by firebird on 2018/4/21.
 */
// 登录数据
data class LoginData(
        @Json(name = "user_uuid") val user_uuid: String,
        @Json(name = "user_name") val user_name: String,
        @Json(name = "nice_name") val nice_name: String,
        @Json(name = "real_name") val real_name: String,
        @Json(name = "sex") val sex: Int,
        @Json(name = "birth_day") val birth_day: String,
        @Json(name = "phone") val phone: String,
        @Json(name = "avatar_text") val avatar_text: String,
        @Json(name = "token") val token: String,
        @Json(name = "user_id") val user_id: String,
        @Json(name = "email") val email: String,
        @Json(name = "credit_score") val credit_score: Int,
        @Json(name = "area") val area: String,
        @Json(name = "address") val address: String,
        @Json(name = "is_explicit") val is_explicit: Int,
        @Json(name = "copper_cash") val copper_cash: Long,
        @Json(name = "gold_ingot") val gold_ingot: Long,
        @Json(name = "level_score") val level_score: Long
)
// 用户个人信息
data class UserInfoBody(
        @Json(name = "user_uuid") val user_uuid: String,
        @Json(name = "user_name") val user_name: String,
        @Json(name = "nice_name") val nice_name: String,
        @Json(name = "real_name") val real_name: String,
        @Json(name = "sex") val sex: Int,
        @Json(name = "birth_day") val birth_day: String,
        @Json(name = "phone") val phone: String,
        @Json(name = "avatar_text") val avatar_text: String,
        @Json(name = "token") val token: String,
        @Json(name = "user_id") val user_id: String,
        @Json(name = "email") val email: String,
        @Json(name = "credit_score") val credit_score: Int,//信用分
        @Json(name = "area") val area: String,
        @Json(name = "address") val address: String,
        @Json(name = "is_explicit") val is_explicit: Int,
        @Json(name = "copper_cash") val copper_cash: Long,
        @Json(name = "gold_ingot") val gold_ingot: Long,
        @Json(name = "level_score") val level_score: Long //等级分
)

// 个人积分实体(记录）
data class UserScoreBean(
        @Json(name = "id") val id: Long,
        @Json(name = "level_score") val level_score: Long,
        @Json(name = "create_time") val create_time: String,
        @Json(name = "desc") val desc: String,
        @Json(name = "reason") val reason: String,
        @Json(name = "type") val type: Int,
        @Json(name = "user_uuid") val user_uuid: String,
        @Json(name = "user_name") val user_name: String
)

